From: Florian Müllner Date: Sun, 5 Sep 2021 22:38:54 +0000 (+0200) Subject: build: Check sassc errors when generating stylesheets X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~574^2^2~16 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2e8fdcd8f15f0cb9ffc663c132626126c4ad1b87;p=gnome-shell.git build: Check sassc errors when generating stylesheets We currently just call sassc, but don't check its return value. That means as long as sassc is available, the script (and therefore the newly added dist CI job) will succeed. Make sure we fail on failure. Part-of: --- diff --git a/meson/generate-stylesheets.py b/meson/generate-stylesheets.py index 35242c68f..bd6b641b8 100644 --- a/meson/generate-stylesheets.py +++ b/meson/generate-stylesheets.py @@ -16,4 +16,4 @@ for stylesheet in stylesheets: stylesheet_path = PurePath(stylesheet) src = PurePath(sourceroot, stylesheet_path.with_suffix('.scss')) dst = PurePath(distroot, stylesheet_path) - subprocess.call(['sassc', '-a', src, dst]) + subprocess.run(['sassc', '-a', src, dst], check=True)